/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.upf.grupof.projectphotos.databases;

import java.util.List;

/**
 *
 * @author fredi
 */
public class DBActionResult implements iDBActionResult {
    
    private boolean resultOk;
    private String msg;
    private Throwable exception;
    private List<iPhoto> results;

    public DBActionResult(){
        resultOk=false;
        msg="";
        exception=null;
        results=null;
        
    }
    
    public boolean isOk() {
        return resultOk;
    }

    public String getErrorMsg() {
        return msg;
    }

    public Throwable getException() {
        return exception;
    }

    public List getResult() {
        return results;
    }

    public void setErrorMsg(String a_ErrorMsg) {
        this.msg=a_ErrorMsg;
        resultOk=false;
    }

    public void setException(Throwable a_Exception) {
        this.exception=a_Exception;
        resultOk=false;
    }

    public void setResult(List a_Result) {
        this.results=a_Result;
        resultOk=true;
    }
    
}
